{template header}
<div class="bs-docs-example table-align pt-15" style="clear:both;">
    <table class="table table-striped table-align">
        <thead>
        <tr>
            <th>评论者</th>
            <th>内容</th>
            <th>添加时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {loop $data $k $v}
        <tr>
            <td>{$v['nickname']}</td>
            <td>{$v['content']}</td>
            <td>{eval echo date('Y-m-d H:i:s',$v['add_time'])}</td>
            <td>
                <a class="btn btn-primary" href="?c=admin&a=addActComment&uid={$v['uid']}&id={$v['aid']}&cid={$v['cid']}">回复</a>
                {if $v['is_show']}
                <a class="btn btn-default" href="?c=admin&a=hideActComment&aid={$v['aid']}&cid={$v['cid']}&is_show=0">隐藏</a>
                {else}
                <a class="btn btn-default" href="?c=admin&a=hideActComment&aid={$v['aid']}&cid={$v['cid']}&is_show=1">显示</a>
                {/if}
            </td>
        </tr>

        {/loop}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}
